package com.example.compreshensiveshop.service;

import com.example.compreshensiveshop.dto.SkuCreateDTO;
import com.example.compreshensiveshop.dto.SkuUpdateDTO;
import com.example.compreshensiveshop.po.SkuPO;
import com.example.compreshensiveshop.vo.SkuListVO;

import java.util.List;

/**
 * Sku Service Interface
 */
public interface SkuService {

    void addProductSku(SkuCreateDTO skuCreateDTO);

    List<SkuListVO> queryByPId(Long productId);

    void updateProductSku(SkuUpdateDTO skuUpdateDTO);

    void lockStock(Long skuId, Integer quantity);

    void backStock(Long skuId, Integer quantity);

    Integer queryStock(Long productId);

    void releaseStock(Long skuId, Integer quantity);

    void checkStock(Long skuId, Integer quantity);

    String queryProductSkuName(Long skuId);
}